﻿using System.Collections.Generic;


namespace CourseManager.Model
{
	public abstract class AbstractRole
	{
		public string Id { get; set; }
		public string Sex { get; set; }
		public string Name { get; set; }
		public string Dept { get; set; }
		public List<Course> CourseList = new List<Course>();


		/// <summary>
		/// 更新课程列表的英文标记, (A,B,C...)
		/// </summary>
		public void UpdateCourseTag()
		{
			var i = 0;
			foreach (var course in CourseList)
			{
				course.Tag = (char)(i++ + 'A');
			}
		}

		
	}
}